package com.yonyou.iuap.corp.demo.yonbip.org;

import com.yonyou.iuap.corp.demo.yonbip.OpenBaseTest;

import java.util.HashMap;
import java.util.Map;

/**
 * @author nishch
 * @version 1.0
 * @date 2021/2/22
 * @des  组织单元
 */
public class UnitTestOpen extends OpenBaseTest {
    @Override
    public void list() throws Exception {
        String url = "https://api.diwork.com/yonbip/digitalModel/orgunit/querytree";
        baseApi.doPost(url,null);
    }

    @Override
    public void detail() throws Exception {
        String url = "https://api.diwork.com/yonbip/digitalModel/orgunit/detail";
        Map<String, Object> params  = new HashMap<String, Object>();
        params.put("id","2112991193503744");
        baseApi.doGet(url,params);
    }

    @Override
    public void save() throws Exception {

    }
}
